/**
 * Created by Sever on 2016/9/27.
 */
var $ = require('zepto');
var utils = require('utils');
var Vue = require('vue');
var VueRouter = require('vue-router');
Vue.use(VueRouter);

//固定组件
var CompHeader = require('../components/header.vue');
var CompFooter = require('../components/footer.vue');
//路由组件
var Home = require('../components/home.vue');
var About = require('../components/about.vue');
var Test = require('../components/test.vue');



utils.adaptive();

var App = Vue.extend({
    components:{
        CompHeader,
        CompFooter
    },
});

var router = new VueRouter();
router.map({
    '/'     : { component: Home },
    '/about': { component: About },
    '/test' : { component: Test },

});
router.start(App, '#app');